@extends('Layouts.layout')
@section('css')
@endsection
@section('content')
    {{ Session::get('message') }}
    <div class="gather_card">
        <div class="banner"></div>
        <div class="form_box">
            <form action="{{ url($perfix.'/order') }}" method="post" >
                {{ csrf_field() }}
                <div class="form shadow">
                    <ul>
                        <li class="user_name clearfix">
                            <i class="i"></i>
                            <span>学生姓名</span>
                            <input type="text" name="userName" value="{{ old('userName') }}" placeholder="请输入姓名" >
                        </li>
                        <li class="user_phone clearfix">
                            <i class="i"></i>
                            <span>手机号码</span>
                            <input type="number" name="userPhone" oninput="if(value.length>11)value=value.slice(0,11)" value="{{ old('userPhone') }}" placeholder="请输入手机号码" >
                        </li>
                        <li class="user_identity clearfix">
                            <i class="i"></i>
                            <span>身份证</span>
                            <input type="text" name="userIdentity" maxlength="18" value="{{ old('userIdentity') }}" placeholder="请输入身份证" >
                        </li>
                        <li class="user_name clearfix">
                            <i class="i"></i>
                            <span>名族</span>
                            <input type="text" name="mzu" value="汉族" >
                        </li>
                        <li class="user_name clearfix">
                            <i class="i"></i>
                            <span>学校</span>
                            <input type="text" name="school" placeholder="请输入学校" >
                            <span class="unit"></span>
                        </li>
                    </ul>
                </div>
                <div class="form shadow">
                    <ul>
                        <li class="user_name clearfix">
                            <i class="i"></i>
                            <span>家长姓名</span>
                            <input type="text" name="parentName" oninput="if(value.length>15)value=value.slice(0,14)" placeholder="请输入" >
                        </li>
                        <li class="user_phone clearfix">
                            <i class="i"></i>
                            <span>手机号码</span>
                            <input type="number" name="parentPhone" oninput="if(value.length>11)value=value.slice(0,11)" placeholder="请输入" >
                        </li>
                    </ul>
                </div>
                <div class="form shadow">
                    <ul>
                        <li class="loan_num clearfix" style="display: none;">
                            <i class="i"></i>
                            <span>贷款金额</span>
                            <input type="number" name="loanNum" value="100" >
                            <span class="unit">万元</span>
                        </li>
                        <li class="user_name clearfix">
                            <i class="i"></i>
                            <span>身高</span>
                            <input type="text" name="height" placeholder="cm" >
                        </li>
                        <li class="user_name clearfix">
                            <i class="i"></i>
                            <span>体重</span>
                            <input type="text" name="weight" placeholder="Kg" >
                        </li>
                        <li class="user_name clearfix">
                            <i class="i"></i>
                            <span>色盲</span>
                            <input type="text" name="seManga" placeholder="请输入" value="无">
                        </li>
                        <li class="user_name clearfix">
                            <i class="i"></i>
                            <span>疤痕</span>
                            <input type="text" name="baHeng"  value="无">
                        </li>
                        <li class="loan_type clearfix">
                            <i class="i"></i>
                            <span>咨询专业</span>
                            <input onclick="loanTypeShow()" name="loanType" type="text" readonly unselectable="on" onfocus="this.blur()" value="{{ old('loanType')?old('loanType'):$product[0]['name'] }}">
                            <i onclick="loanTypeShow()" class="arrows"></i>
                        </li>
                        <li class="submit_">
                            <button onclick=" return submit_(this);">提交</button>
                        </li>
                    </ul>
                </div>
            </form>
        </div>
        <div class="loan_type_box none">
            <div class="loan_type_msg">
                <ul>
                    @if($product)
                        @foreach($product as $k=>$item)
                            <li @if($k==0) class="on" @endif> <span>{{ $item->name }}</span> <i></i></li>
                        @endforeach
                    @endif
                </ul>
                <div onclick="loanTypeHide()" class="cancel_loan_type">取消</div>
            </div>
        </div>
    </div>

@endsection
@section('js')
@endsection
